from PyQt5.Qt import  *

class E_LineEdit(QLineEdit):

    def __init__(self, parent=None):
        super(E_LineEdit, self).__init__(parent)

    def event(self, a0:QEvent) -> bool:
        if a0.type() == QEvent.ToolTip:
            self.setToolTip(self.text())
        return QLineEdit.event(self, a0)


